import Vue from 'vue'
import VueRouter from 'vue-router'
import MonacoEditor from '../views/MonacoEditor.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'monaco-editor',
    component: MonacoEditor
  },
  {
    path: '/MonacoEditorNPM',
    name: 'MonacoEditorNPM',
    component: () => import('../views/MonacoEditorNPM.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
